package com.yxhl.zoume.core.main.ui;

import com.yxhl.zoume.R;
import com.yxhl.zoume.core.busticket.ui.fragment.BusTicketHomeFragment;
import com.yxhl.zoume.core.car.fragment.CarHomeFragment;
import com.yxhl.zoume.core.tripsmgmt.ui.fragment.home.TripsHomeFragment;
import com.yxhl.zoume.core.user.ui.fragment.UserHomeFragment;

/**
 * 枚举类：底部tab控件
 * <p>
 * Created by Xboy on 16/3/1.
 */
public enum MainTab {

    // 巴士模块
    BUS(0, R.string.main_tab_name_bus, R.drawable.widget_tab_bus, BusTicketHomeFragment.class),
    // 快车模块
    CAR(1, R.string.main_tab_name_car, R.drawable.widget_tab_special, CarHomeFragment.class),
    // 行程管理
    TRIP(2, R.string.main_tab_name_trip, R.drawable.widget_tab_trip, TripsHomeFragment.class),
    // 我的
    MINE(3, R.string.main_tab_name_mine, R.drawable.widget_tab_mine, UserHomeFragment.class);

    private int index;
    private int resName;
    private int resIcon;
    private Class<?> cls;

    private MainTab(int index, int resName, int resIcon, Class<?> cls) {
        this.index = index;
        this.resName = resName;
        this.resIcon = resIcon;
        this.cls = cls;
    }


    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public int getResName() {
        return resName;
    }

    public void setResName(int resName) {
        this.resName = resName;
    }

    public int getResIcon() {
        return resIcon;
    }

    public void setResIcon(int resIcon) {
        this.resIcon = resIcon;
    }

    public Class<?> getCls() {
        return cls;
    }

    public void setCls(Class<?> cls) {
        this.cls = cls;
    }
}
